import request from '@/utils/request'

export function teamListAdmin(query) {
  return request({
    url: '/user/team/teamListAdmin',
    method: 'get',
    params: query
  })
}

export function teamByIdAdmin(query) {
  return request({
    url: '/user/team/teamByIdAdmin',
    method: 'get',
    params: query
  })
}

export function updateTeamStatus(data) {
  return request({
    url: '/user/team/updateTeamStatus',
    method: 'post',
    data
  })
}

export function listSimpleTeam() {
  return request({
    url: '/user/team/listSimpleTeam',
    method: 'get'
  })
}

export function insertTeamData(data) {
  return request({
    url: '/user/team-data/insertTeamData',
    method: 'post',
    data
  })
}

export function listTeamDataAdmin(query) {
  return request({
    url: '/user/team-data/listTeamDataAdmin',
    method: 'get',
    params: query
  })
}

export function descriptionById(query) {
  return request({
    url: '/user/team-data/descriptionById',
    method: 'get',
    params: query
  })
}

export function deleteTeamData(query) {
  return request({
    url: '/user/team-data/deleteTeamData',
    method: 'post',
    params: query
  })
}

export function listTeam(query) {
  return request({
    url: '/user/team/listTeam',
    method: 'get',
    params: query
  })
}

export function validateTeamUser(data) {
  return request({
    url: '/user/team-user/validateTeamUser',
    method: 'post',
    data
  })
}

export function teamDataList(query) {
  return request({
    url: '/user/team-data/teamDataList',
    method: 'get',
    params: query
  })
}

export function deleteTeam(data) {
  return request({
    url: '/user/team/deleteTeam',
    method: 'post',
    data
  })
}
